package edu.whu.aspect;

public class TimeRecorder {
    long invokeTimes;
    long longestTime;
    long shortestTime;
    long averageTime;
    long exceptionTimes;

    @Override
    public String toString() {
        return "TimeRecorder{" +
                "invokeTimes=" + invokeTimes +
                ", longestTime=" + longestTime +
                ", shortestTime=" + shortestTime +
                ", averageTime=" + averageTime +
                ", exceptionTimes=" + exceptionTimes +
                '}';
    }

    public TimeRecorder() {
        this.invokeTimes = 1;
        this.longestTime = 0;
        this.shortestTime = 0;
        this.averageTime = 0;
        this.exceptionTimes=0;
    }
}
